<c:set var="menuId_" value="${param._menuId}"/>

<div id="header-wrap">

	<div class="clearfix" id="header">
	
        <div class="region region-header"> 
                   
            <div class="menu_block">
            
				<div class="content clearfix">
				
					<div class="clearfix">
					
						<div class="desplegable">
						
							<ul class="">
								<c:forEach var="menuHead" items="${s_menuHeadList}">
									<li class="${(menuHead.menuId != menuId_)?'first expanded menu-mlid-579':'first expanded active-trail menu-mlid-579'}">
										<span><a href='#'>${menuHead.name}</a>
										<ul class='menu'>
		         							<c:forEach items="${menuHead.submenuCollection}" var="submenu">
		         								<c:set var="tempActivar" value="0"/>
		         								<c:forEach items="${submenu.optionCollection}" var="option">
		         									<c:if test="${(not empty option.accessCollection)}">
		         										<c:set var="tempActivar" value="1"/>
		         									</c:if>
										        </c:forEach>
										        <c:if test="${tempActivar == 1}">
													<li class="leaf menu-mlid-858">
														<span><a href='<spring:url value="${submenu.url}" htmlEscape="true" />'>${submenu.name}</a></span><span class="end"></span>				
													</li>
												</c:if>
									        </c:forEach>
		        						</ul>								
										</span><span class='end'></span>
									</li>
								</c:forEach>
								<li class='first expanded menu-mlid-579'>
									<span><a href='<spring:url value="/closeSesion" htmlEscape="true" />'>Cerrar Sesion</a>					
								</li>
							</ul>
						</div>
					</div>
				</div>
            </div>              
        </div>
    </div>	
</div>	